home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / rexx / smacros.lha / Read_Me_First / FWDocs / SuperMacrosDOCS.ASCII < prev    next >
Text File  |  1994-12-17  |  7KB  |  227 lines

  1. Auto_Save
  2.  
  3. Originally written for Final Copy users, but better that the Final Writer auto save feature, because it can be totally transparent.  Its also has more flexible timing options.  Caution:  if you don't use the "Confirmation" option, there is no way to terminate the routine, except for ending the program and restarting it.
  4.  
  5.  
  6.  
  7. Quick_Envelope
  8.  
  9. Entering Data
  10.  
  11. To begin, simply type the address on the screen, in the font and size you would like, and highlight it with the mouse.  Then run the SuperMacro by selecting the "Other >> ARexx Script" option from the "User" menu.  Then go to the directory that contains the SuperMacros and double-click on Quick_Envelope.  Better yet, add the script to a the "User Menu" or the "Button Strip".  If no text is highlighted, the SuperMacro will ask you for some.  Be sure the font and size you want is already selected.
  12.  
  13.  
  14.  
  15. You will then be asked to enter a name for the template envelope.  This is the document that the address will be printed upon.  A sample template named "Template_BusinessEnvelope has been supplied, and should be placed in your FWDocs drawer, so the SuperMacro can find it.  The address will be inserted after of the text on the "template", so be sure the last line is at the proper position, and the margins are set correctly for the address.  As long as this "template" envelope prints correctly, so will the final product.  Note: if this document is in a drawer with a different name, you will need to edit the macro itself to reflect the correct document drawer's name.  Always work with a copy of your original software, as macros are easy to screw up.
  16.  
  17.  
  18.  
  19. Manipulating Data
  20.  
  21. Once the envelope is created and addressed, the words can be manipulated as normal text (just cancel the print requestor first).   
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. Create Bar Graph
  30.  
  31. Entering Data
  32.  
  33. Before you run this SuperMacro, you must enter the data to be graphed.
  34.  
  35.  
  36.  
  37. Entering the data to be graphed is a very simple process.  The SuperMacro will look for each element of the graph in a certain line position.  Just enter each line of data in the proper order, then hit return.
  38.  
  39.  
  40.  
  41. ·    The first line must be the Title of the graph.
  42.  
  43. ·    The second line must be the Subtitle.
  44.  
  45. ·    The third line must contain the X-axis Title <tab> Y-axis Title.
  46.  
  47. ·    All remaining lines must contain X-axis Data <tab> Y-axis Data.
  48.  
  49.  
  50.  
  51. The following example shows how the data entered on the left, will be used to automatically create the bar graph shown on the right.  Note the use of the <tab> key from the third line and onward.
  52.  
  53.  
  54.  
  55. Example:
  56.  
  57.  
  58.  
  59. Our Top Sellers!
  60.  
  61. Third Quarter 1997
  62.  
  63. Salesperson    Autos Sold
  64.  
  65. Sally    15   
  66.  
  67. Mark    12   
  68.  
  69. Jim    18   
  70.  
  71. Steve    11   
  72.  
  73. Nancy    8   
  74.  
  75. Rich    11   
  76.  
  77. Nick    21   
  78.  
  79. Dave    6   
  80.  
  81. Mary    13   
  82.  
  83. Sam    10   
  84.  
  85. Susan    15   
  86.  
  87. John    8   
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95. Selecting Data
  96.  
  97. The data to be graphed must be highlighted by dragging the pointer through all of the lines which contain data.  The highlight doesn't have to start at the very first character, or end at the very last, it just has to overlap each line that contains data.  Be careful not to highlight lines that contain no data, as this will prevent the SuperMacro from running properly.
  98.  
  99.  
  100.  
  101.  
  102.  
  103. Creating the Graph
  104.  
  105. Once the data is highlighted, select the CreateBarGraph SuperMacro.  This can be done by selecting the "Other >> ARexx Script" option from the "User" menu.  Then go to the directory that contains the SuperMacros and double-click on Create Bar Graph.
  106.  
  107.  
  108.  
  109. A requestor will ask you to enter the maximum range for the Y-axis and the Y-axis increment.  This is the highest number that will appear on the vertical axis, and the increments which will be plotted on that axis.  In the above example the maximum range is 25, and the increment is 5.
  110.  
  111.  
  112.  
  113.  
  114.  
  115. Manipulating the Graph
  116.  
  117. Once the graph has been created, it can be moved, sized and rotated just like any other object.  If you want to change just a piece of the graph, like the subtitle, you must ungroup the graph first.  Do this by selecting the object, then choose the "Ungroup" option from the "Graphics" menu.  Now any part of the graph can be manipulated as an individual object.  To regroup the objects into one, drag a box around them all, choose "Group" from the "Graphics" menu.
  118.  
  119.  
  120.  
  121. Create_BusinessLetter
  122.  
  123. No explanation required, just follow the prompts.
  124.  
  125.  
  126.  
  127. Create_Letterhead
  128.  
  129. No explanation required, just follow the prompts.
  130.  
  131.  
  132.  
  133. Create_Memorandum
  134.  
  135. No explanation required, just follow the prompts.
  136.  
  137.  
  138.  
  139. Create_Table
  140.  
  141. Just type in the data using the format:
  142.  
  143.  
  144.  
  145. Title<return> [Optional]
  146.  
  147. Item1<tab>    Item2<tab> Item3<tab>    and so on...
  148.  
  149. Item1<tab>    Item2<tab> Item3<tab>    and so on...
  150.  
  151.  
  152.  
  153. Then highlight through all of the data lines you want in the table.  Run the Macro.
  154.  
  155.  
  156.  
  157. Example:
  158.  
  159.  
  160.  
  161. Farm Animals
  162.  
  163. Animal    1993    1994
  164.  
  165. Cows    2    6
  166.  
  167. Pigs    56    12
  168.  
  169. Goats    2    6
  170.  
  171.  
  172.  
  173. The above example will produce the following table:
  174.  
  175.  
  176.  
  177.  
  178.  
  179. Farm Animals
  180.  
  181.     Animal    1993    1994
  182.  
  183.     Cows    2    6
  184.  
  185.     Pigs    56    12
  186.  
  187.     Goats    2    6
  188.  
  189.  
  190.  
  191. Note: The margins must go from the Inside margin to the Outside margin.
  192.  
  193.  
  194.  
  195.  
  196.  
  197. Save_Address
  198.  
  199. Caution:  This macro will only work if the ASCII I/O Preferences are set to "Make paragraph at each blank line" and "Insert blank line after each paragraph" only.  Set these preference options properly and "save" them if you want to use this macro.  This is to prevent the ASCII saves and loads forom inserting extraneous characters in the data file.
  200.  
  201.  
  202.  
  203. Allows the user to input an address and save it to a data file.  The default data file is called "Address_DataFile.ASCII" and a sample is provided.  The sample should be copied to the document drawer before using this macro.  The SuperMacro will askk you for eight pieces of information for each address, then save them all alphabetically sorted in the data file.  The data file is an ASCII file conforming to the "merge" file format, if you want to merge any or all of this data at a later time.
  204.  
  205.  
  206.  
  207. Load_Address
  208.  
  209. Caution:  This macro will only work if the ASCII I/O Preferences are set to "Make paragraph at each blank line" and "Insert blank line after each paragraph" only.  Set these preference options properly and "save" them if you want to use this macro.  This is to prevent the ASCII saves and loads forom inserting extraneous characters in the data file.
  210.  
  211.  
  212.  
  213. Allows the user to search the data file for any number of matches to a string of search text.  The address(es) are then inserted at the current cursor position.
  214.  
  215.  
  216.  
  217. Note:  The data file can also be used as a merge data file.  It must therefore begin with the field names, which are:
  218.  
  219.  
  220.  
  221. Name,Company,Address1,Address2,City,State,Zip,Phone
  222.  
  223.  
  224.  
  225. The data file must be saved using the ASCII I/O options listed above to prevent the insertion of extraneous characters!
  226.  
  227.